-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some minor test corrections #57
Conversation
) | ||
|
||
property("validate numbers") { | ||
forAll(tests) { d => | ||
forAll { d: Double => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ajayborra this will automatically magnet generator for any arbitrary d: Double
} | ||
|
||
property("validate special numbers") { | ||
forAll(specials) { d => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ajayborra here we explicitly pass in specials table
val listener = new OpSparkListener(sc.appName, sc.applicationId, "testRun", Some("tag"), Some("tagValue"), true, true) | ||
sc.addSparkListener(listener) | ||
spark.read.csv(s"$testDataDir/PassengerDataAll.csv") | ||
val _ = spark.read.csv(s"$testDataDir/PassengerDataAll.csv").count() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually running some job here, i.e count rows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, Saw the changes below
@@ -43,8 +43,9 @@ class RichTupleTest extends FlatSpec with TestCommon { | |||
res.get shouldBe 3 | |||
} | |||
|
|||
it should "not map empty tuples" in { | |||
assertDoesNotCompile("(None, None).map((x, y) => x + y)") | |||
it should "map on empty tuples" in { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(None, None).map actually works if the types are set, so I corrected the test.
|
||
val specials = Table("specials", | ||
Double.MinValue, Double.MaxValue, | ||
Double.MinPositiveValue, Double.MinPositiveValue, Double.NaN, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double.MinPositiveValue is repeated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Minor comment related to repeated Double.MinPositiveValue
No description provided.